<?php
      function is_ingelogd( $fout )
      {
       
              if( ! isset($_SESSION['user']) || empty( $_SESSION['user'] ) ) {
                      exit($fout);
              }
       
      } 
?>